function add_student_user_success(data) {

    console.log(data);
    if(data.indexOf("error") != -1) {
        //出错
        layer.alert("增加失败!错误原因:"+data, {icon: 6},function () {
            // 获得frame索引
            var index = parent.layer.getFrameIndex(window.name);
            //关闭当前frame
            parent.layer.close(index);});
    }else {
        layer.alert(data, {icon: 6},function () {
            // 获得frame索引
            var index = parent.layer.getFrameIndex(window.name);
            //关闭当前frame
            parent.layer.close(index);
        });
        return false;
    }
}
